# -*- coding: utf-8 -*-
from flask_wtf import Form
# from wtforms import HiddenField, BooleanField, TextField, \
#         PasswordField, SubmitField, TextField, RecaptchaField, \
#         ValidationError, required, email, equal_to, regexp
from wtforms import HiddenField, BooleanField, TextField, \
        PasswordField, SubmitField, TextField, ValidationError, StringField
from wtforms.validators  import required,email,equal_to,regexp
from flask_babel import gettext,lazy_gettext as _

# from app.models22.users import User
# from app.extensions import db

# from .validators import is_username

class LoginForm(Form):

    next = HiddenField()

    remember = BooleanField(_("Remember me"))

    login = StringField(_("Username or email address"), validators=[
                      required(message=\
                               _("You must provide an email or username"))])

    password = PasswordField(_("Password"))

    submit = SubmitField(_("Login"))